home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 11 / FM Towns Free Software Collection 11.iso / t_os / tool / dolmorph / src / about.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-07  |  1.4 KB  |  58 lines

  1. /*===========================================
  2.           DolphMorph(ドルフモーフ)
  3.  
  4.       モーフィング&変形アニメ作成ソフト
  5.  
  6.   モーフィングアルゴリズム: EAST 1994
  7.   インターフェース作成:     松内 良介 1994
  8. ===========================================*/
  9.  
  10. #include <stdio.h>
  11. #include <stdlib.h>
  12. #include <string.h>
  13. #include <winb.h>
  14. #include <te.h>
  15. #include <fntb.h>
  16. #include <gui.h>
  17.  
  18. #include "morph.h"
  19. #include "desktop.h"
  20. #include "guisub.h"
  21.  
  22. int    idAboutDlg = -1 ;
  23. int    idAboutDlgOver = -1 ;
  24. int    idAboutFrameDBtn = -1 ;
  25. int    idAboutTitleIcon = -1 ;
  26. int    idAboutOkDBtn = -1 ;
  27. int    idAboutFreeMsg = -1 ;
  28.  
  29. /*    initDataZABOUT:idAboutOkDBtn:MJ_DBUTTONL40の呼び出し関数    */
  30. int    AboutOkDBtnFunc(kobj, messId, argc, pev, trigger)
  31. int        kobj ;
  32. int        messId ;
  33. int        argc ;
  34. EVENT    *pev ;
  35. int        trigger ;
  36. {
  37.     MMI_SetHaltFlag(TRUE);
  38.     return NOERR ;
  39. }
  40.  
  41.  
  42. void    about_display(void)
  43. {
  44.     int freeMem;
  45.     freeMem = TL_checkMemory(0) * 4096;
  46.     static char msg[40];
  47.     sprintf(msg, "  Free Memory %d KBytes  ", freeMem / 1024);
  48.     MMI_SendMessage(idAboutFreeMsg, MM_SETMSG, 1, msg);
  49.     RM_moveCenter(idAboutDlg);
  50.     MTL_setFlagObj(idDesktopSelectiveHyper, MS_UNSELECT) ;
  51.     MMI_SendMessage(idAboutDlg, MM_ATTACH, 1, idDesktopAlertHyper);
  52.     MMI_SendMessage(idAboutDlg, MM_SHOW, 0);
  53.     MMI_ExecSystem();
  54.     MMI_SendMessage(idAboutDlg, MM_ERASE, 0);
  55.     MMI_SendMessage(idAboutDlg, MM_DETACH, 0);
  56.     MTL_resetFlagObj(idDesktopSelectiveHyper, ~MS_UNSELECT) ;
  57. }
  58.